<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php if(is_single()) { ?>
	<h1 class="title"><?php the_title(); ?></h1>
<?php } else { ?>
	<h1 class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<?php } ?>

<?php if(fazio_option('layout_use_thumbnails') == 'on') : ?>
	<div class="post_divider">
		<?php if(has_post_thumbnail()) : ?>
			<div class="post_image">
				<?php echo get_the_post_thumbnail(NULL, 'thumbnail'); ?>
			</div>
		<?php endif; ?>
		<div class="post_info">
			<em>
				<span class="date"><a href="<?php the_permalink(); ?>"><?php the_time(get_option('date_format')); ?></a></span>
				<span class="author"><?php the_author_posts_link(); ?></span>
				<span class="comments"><a href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), sprintf(__('%d Comments', 'fazio'), get_comments_number())); ?></a></span>
			</em>
		</div>
		
		<?php if(fazio_option('layout_show_excerpt') == 'on' OR !is_home() OR (is_home() && fazio_option('layout_full_post') == 'off')) : ?>
			<div class="post_excerpt">
				<?php the_excerpt(); ?>
			</div>
		<?php endif; ?>
	</div>
<?php else : ?>
	<div class="post_info classic_layout">
		<em>
			<span class="date"><?php the_time(get_option('date_format')); ?></span>
			<span class="author"><?php the_author_posts_link(); ?></span>
			<span class="comments"><a href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), sprintf(__('%d Comments', 'fazio'), get_comments_number())); ?></a></span>
		</em>
	</div>
	
	<?php if(fazio_option('layout_show_excerpt') == 'on' OR !is_home() OR fazio_option('layout_full_post') == 'off') : ?>
		<div class="post_excerpt classic_layout">
			<?php the_excerpt(); ?>
		</div>
	<?php endif; ?>
<?php endif; ?>

<?php if((is_home() && fazio_option('layout_full_post') == 'on') OR is_single()) : ?>
	<div class="entry">
		<?php the_content(__('Keep reading...', 'fazio')); ?>
	</div>
<?php endif; ?>

<?php if(is_single()) { ?>

	<?php wp_link_pages(array(
		'before' => '<div id="pagination">',
		'after' => '</div>',
		'next_or_number' => 'next',
		'nextpagelink' => __('Next page &raquo;', 'fazio'),
		'previouspagelink' => __('&laquo; Previous page', 'fazio')
	)); ?>
	
	<?php if(function_exists('related_posts')) : ?>
		<?php related_posts(); ?>
	<?php endif; ?>

	<div class="author_info">
		<div class="author_avatar">
			<?php echo get_avatar(get_the_author_meta('user_email'), '90'); ?>
		</div>
		
		<div class="author_intro">
			<h3><?php _e('Author', 'fazio'); ?>: <?php the_author_link(); ?></h3>
			
			<p><?php the_author_meta('description'); ?></p>
			
			<p><small><?php printf(__('See all posts by %1$s (%2$d)', 'fazio'), get_the_author_posts_link(), get_the_author_posts()); ?></small></p>
		</div>
	</div>

<?php } else { ?>
	<div class="post_footer">
		<?php the_tags('<span class="tags">', ', ', '</span>'); ?>

		<span class="categories">
			<?php the_category(', '); ?>
		</span>
	</div>
<?php } ?>
</div><!-- end post-<?php the_ID(); ?> -->